﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NFit.Core.Errors
{
    /// <summary>
    /// Error attached when a value does not correspond to what is expected
    /// </summary>
    public class ValueMismatchError : NFitError
    {
        /// <summary>
        /// The expected value
        /// </summary>
        public object Expected { get; private set;}

        /// <summary>
        /// The actual value
        /// </summary>
        public object Actual { get; private set;}

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="expected"></param>
        /// <param name="actual"></param>
        public ValueMismatchError(object expected, object actual)
        {
            Expected = expected;
            Actual = actual;
        }
    }
}
